package com.gj;

import com.gj.bean.Person;
import com.gj.config.Mainconfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Maintest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(Mainconfig.class);
        Person bean = annotationConfigApplicationContext.getBean(Person.class);
        System.out.println(bean);
    }
}
